import request from "@/utils/axios";
export function findUploadPckageList(data) {
  return request({
    path: "/node/uploadPackage/findUploadPckageList",
    data,
  });
}
export function upload(data) {
  return request({
    path: "/node/uploadPackage/upload",
    data,
  });
}
export function proxyUpload(data) {
    return request({
        path: "/node/uploadPackage/proxy/upload",
        data,
    });
  }
 
// 新增：分片上传接口
export function uploadChunkHandel(data) {
    return request({
        path: "/node/uploadPackage/Chunks/upload",
        data,
    });
}

export function mergeChunksHandel(data) {
    return request({
        path: "/node/uploadPackage/Chunks/merge",
        data,
    });
  }

// 新增：查询上传状态接口
export function getUploadStatus(uploadId) {
    return request({
        path: `/node/uploadPackage/upload/status/${uploadId}`,
        method: 'get'
    })
}

 